package com.cy.wangly.feign.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @author lingyun.wang on @date 2021/12/21
 */
@FeignClient(name = "bigBody", url = "http://localhost:10102")
public interface InputService {
    @PostMapping(value = "/rest/input/body/{fileName}")
    String execBody(@PathVariable String fileName, @RequestBody String body);

    @PostMapping(value = "/rest/input/{fileName}")
    String execInput(@PathVariable String fileName, HttpServletRequest request);
}
